﻿using Kimd.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Kimd.Motion
{
    public class CellColor : SingletonProvider<CellColor>
    {
        public Dictionary<CellStatus, string> Status2Color { get; set; }
        public Dictionary<TestResult, string> Result2Color { get; set; }

        public CellColor()
        {
            Status2Color = new Dictionary<CellStatus, string>();
            Status2Color.Add(CellStatus.NoProduct, "gray");
            Status2Color.Add(CellStatus.HasProduct, "yellow");

            Result2Color = new Dictionary<TestResult, string>();
            Result2Color.Add(TestResult.NoTest, "tan");
            Result2Color.Add(TestResult.FirstTimeOK, "green");
            Result2Color.Add(TestResult.FirstTimeNG, "red");
            Result2Color.Add(TestResult.SecondTimeOK, "spring green");
            Result2Color.Add(TestResult.SecondTimeNG, "orchid");
            Result2Color.Add(TestResult.ThirdTimeOK, "forest green");
            Result2Color.Add(TestResult.ThirdTimeNG, "violet red");
        }
    }
}
